<?php
/**
 * WB_PersistentStoreClass class
 * 
 * Two types:
 * - LOCAL  (e.g. db or memory based)
 * - GLOBAL (e.g. amazon S3)
 * 
 * @author Jean-Lou Dupont
 * @version @@package-version@@
 * @id $Id: PersistentStoreClass.php 157 2008-03-16 01:06:39Z jldupont $
 */

 //{{include
 // must surely be loaded already!
 #require_once 'web-bloks/BaseClass/BaseClass.php'; 
 //include}}
 
 class WB_PersistentStoreClass
	extends WB_BaseClass
 {
 	/**
 	 * Store of LOCAL type
 	 */
 	const TYPE_LOCAL = 0;
	
	/**
	 * Store of GLOBAL type
	 */
	const TYPE_GLOBAL= 1;
	
 	/**
 	 * Type of store
 	 * Derived classes must initialize
 	 * this in their __construct
 	 */
	var $type = null;
		
 	/**
 	 * Constructor
 	 */
	public function __construct( $params = null )
	{
		parent::__construct( $params );
	}
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	// WB_BaseClass
	// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%	
	/**
	 * @see WB_BaseClass::getClassPath
	 */
	public function getClassPath()
	{
		return 'web-bloks/PersistentStoreClass';
	}
	/**
	 * @see WB_BaseClass::getClassVersion
	 * @return 
	 */
	public function getClassVersion()
	{
		return '$Id: PersistentStoreClass.php 157 2008-03-16 01:06:39Z jldupont $';
	}
		
	// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%		
	// Interface
	// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%				
	/**
	 * Returns store type
	 * 
	 * @return constant
	 */
	public function getType()
	{
		return $this->type;
	}
	
 } // end class declaration